package com.caisejingyu.whales.api;

import com.caisejingyu.whales.common.api.ApiConfig;
import com.caisejingyu.whales.common.api.BaseResponse;

import io.reactivex.Flowable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Query;

import static com.caisejingyu.whales.smartrotob.main.ApiConstants.OPEN_API_KEY;

public interface JYApi {
    /**
     * 默认地址的请求
     */
    @POST("rms/v2/app/menu")
    Flowable<BaseResponse<Object>> test1(@Body RequestParam param);
    
    /**
     * 其他地址的请求
     */
    @Headers({ApiConfig.URL_KEY_HEADER +  OPEN_API_KEY})
    @GET("cms/v1/dev/getRsaKey")
    Flowable<BaseResponse<Object>> test2(
            @Query("param") String param,
            @Query("devTypeId") String devTypeId,
            @Query("stamp") String stamp
    );
    
    
}
